<?php
/**
 * @Author: Marte
 * @Date:   2017-08-28 15:08:36
 * @Last Modified by:   Marte
 * @Last Modified time: 2017-09-04 10:31:14
 */
//include('protected/view/home/index/index.html');
//if($smarty->is_cached(VIEW_PATH.$admin.'layout.tpl')){
    //echo '没有生成';
    //$p=empty($_GET['p'])?0:$_GET['p'];
    //$offset=($p-1)*3;
    $data=getSelect('news');
    $smarty->assign('data',$data);
// }else{
// echo '生成';
// }
     $smarty->cache_lifetime=1000;

//include(VIEW_PATH.$admin.'layout.html');
$smarty->display(VIEW_PATH.$admin.'layout.tpl');